﻿@{
    ViewBag.Title = "Licenses";
    ViewBag.PageJavascript = @Url.Content("~/Scripts/License/GetLicenses.js");
}

<h2>Licenses</h2>

@if (ViewBag.IsEmpty)
{
    <p>
        No Licenses have been created.
    </p>
}

<table id="list" class="scroll"></table>
<div id="pager" class="scroll" ></div>
<div class="ui-widget ui-widget-content ui-corner-all ui-jqdialog" id="AddLicenseFormContainer">
    <form id="AddLicenseForm" action="/License/New/" method="post" class="FormGrid">
        <table class="EditTable">
            <tbody>
                <tr class="FormData">
                    <td class="CaptionTD">Name</td>
                    <td class="DataTD"><input type='text' name="Name" class='FormElement ui-widget-content ui-corner-all required' /></td>
                </tr>
                <tr class="FormData">
                    <td class="CaptionTD">Feature</td>
                    <td class="DataTD"><input type='text' name="Feature" class='FormElement ui-widget-content ui-corner-all required' /></td>
                </tr>
                <tr class="FormData">
                    <td class="CaptionTD">Type</td>
                    <td class="DataTD">
                        <select name="Type" class='FormElement ui-widget-content ui-corner-all'>
                            <option value="NodeLockedLicense">Node Locked License</option>
                            <option value="UncountedFloatingLicense">Uncounted Floating License</option>
                            <option value="ConcurrentCountedFloatingLicense">Counted Floating License</option>
                            <option value="ExecutionsCountedFloatingLicense">Executions Count Floating License</option>
                        </select>
                    </td>
                </tr>
                <tr class="FormData">
                    <td class="CaptionTD">Clients</td>
                    <td class="DataTD"><input type='text' name="ClientTypes" class='FormElement ui-widget-content ui-corner-all required' /></td>
                </tr>                
                <tr class="FormData">
                    <td class="CaptionTD">Limit</td>
                    <td class="DataTD"><input type='text' name="Limit" class='FormElement ui-widget-content ui-corner-all' /></td>
                </tr>
                <tr class="FormData">
                    <td class="CaptionTD" colspan="2">
                        <a name="Submit" class="fm-button ui-state-default ui-corner-all submit">Submit</a>
                        <a name="Cancel" class="fm-button ui-state-default ui-corner-all">Cancel</a>
                    </td>    
                </tr>
            </tbody>
        </table>
    </form>
</div>



